
import 'package:flutterlib/common/config/config.dart';
import 'package:flutterlib/model/im/group_pojo.dart';
import 'package:retrofit/retrofit.dart';
import 'package:dio/dio.dart' hide Headers;

import '../api.dart';

part 'im_api.g.dart';

@RestApi()
abstract class IMApi {
  factory IMApi(Dio dio, {String baseUrl}) = _IMApi;

  factory IMApi.builder()=> IMApi(HttpManager().getDio());

  @GET("/im/chatGroup/getChatGroupByUid")
  Future<List<GroupEntity>> getMyGroup(@Query("userId") int userId);
}


